package com.microservice.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.microservice.wechat.entity.ArticleReviewRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 文章审核记录Mapper接口
 */
@Mapper
public interface ArticleReviewRecordMapper extends BaseMapper<ArticleReviewRecord> {

    /**
     * 根据文章ID查询审核记录列表
     * 
     * @param articleId 文章ID
     * @return 审核记录列表
     */
    List<ArticleReviewRecord> selectByArticleId(@Param("articleId") Long articleId);

    /**
     * 查询文章的最新审核记录
     * 
     * @param articleId 文章ID
     * @return 最新审核记录
     */
    ArticleReviewRecord selectLatestByArticleId(@Param("articleId") Long articleId);
}
